package com.zx.mes.hyl.generator.mapper;

import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 代码生成器
 *
 * @author hyl
 * @email 632105841@qq.com
 * @date 2018-1-27
 */
@Component
public interface GeneratorMapper {
	/**
	 * 获取全部列表(根据条件)
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> queryList(Map<String, Object> map);

	/**
	 *
	 * @param map
	 * @return
	 */
	int queryTotal(Map<String, Object> map);

	/**
	 *
	 * @param tableName
	 * @return
	 */
	Map<String, String> queryTable(String tableName);

	/**
	 * 遍历所有的表列
	 * @param tableName
	 * @return
	 */
	List<Map<String, String>> queryColumns(String tableName);
}
